package com.alit.ibot.manager.attachement.controller;

import com.alit.ibot.manager.attachement.service.UrlManagerService;
import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;

/**
 * @author litong
 * @date 2019年6月20日_下午2:21:45
 * @version 1.0
 * @desc
 */
public class IndexController extends Controller {

  @Inject
  private UrlManagerService ums;

  public void index() {
    String para0 = getPara(0); // 获取para0
    String retval = ums.get(para0);
    if(retval==null) {
      renderText("url没有找到");
    }else {
      redirect(retval);
    }
  }
}
